package cn.novel.bm.util;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(description = "下行结果对象")
public class ResponseResult<T> {

    @ApiModelProperty(value = "执行时间", example = "1594954108020")
    private Long timestamp = System.currentTimeMillis();
    @ApiModelProperty(value = "错误代码-成功时返回:000", example = "000")
    private String errCode = "000";
    @ApiModelProperty(value = "http状态码", example = "200")
    private int httpStats = 200;
    @ApiModelProperty(value = "错误描述-成功时返回:ok", example = "ok")
    private String message = "ok";
    @ApiModelProperty("返回结果对象")
    private T payload;


}
